/*
 * @Author: Starfish_DL
 * @Date: 2020-10-08 00:46:53
 * @LastEditors: Starfish_DL
 * @LastEditTime: 2020-10-08 11:40:53
 * @CurrentVersion: 1.0
 * @Description: 
 */

public class Circle extends GeometricObject{
    private double radius;
    public Circle() {
        super();
        this.radius=1;
    }
    public Circle(double radius) {
        super();
        this.radius=radius;
    }
    public Circle(double radius,String color,double weight) {
        this.color=color;
        this.radius=radius;
        this.weight=weight;
    }
    public void setRadius(double radius) {
        this.radius=radius;
    }
    public double getRadius() {
        return this.radius;
    }
    public double findArea() {
        return this.radius*this.radius*3.14;
    }
    public boolean equals(Circle c) {
        if (this.radius==c.radius) {
            return true;
        } else {
            return false;
        }
    }
    public String toString() {
        return this.radius+"";
    }
}
